﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace laohan.Common.APIInter
{
    /// <summary>
    /// 身份证读卡器设备
    /// </summary>
    public interface IDevice
    {
        /// <summary>
        /// 初始化设备
        /// </summary>
        void Init();

        /// <summary>
        /// 卡认证
        /// </summary>
        void Authenticate();

        /// <summary>
        /// 读取内容
        /// </summary>
        /// <returns>返回读取的人员信息</returns>
        PersonInfo ReadContent();

        /// <summary>
        /// 关闭设备
        /// </summary>
        void Close();
    }
}
